<!DOCTYPE html>
<html>
 <head>
  <title>js内置对象</title>
  <meta charset="utf-8">
 </head>

 <body>
  <script>
	//global
	var uri = '//lei李'
	console.log(encodeURI(uri))
	console.log(encodeURIComponent(uri))

	console.log(decodeURI(uri))
	console.log(decodeURIComponent(uri))

	//eval执行javascript代码
	var code='var v1 = 100'
	eval(code)
	console.log(v1)


  </script>
 </body>
</html>
